/**
 * @desc 查询飞书子节点笔记
 */
import { axios } from '@/plugins/axios';

export function useGetLarkChildren() {
  const getLarkChildren = (
    /** 飞书文件夹 Token */
    token: string,
  ): Promise<note.LarkFilePage> => {
    return axios({
      method: 'post',
      url: `/cn-knowledge/notebook/${token}/lark-notes`,
    });
  };
  return { getLarkChildren };
}
